import FetchHelper from "../helper/fetch-helper";
import { useState, useEffect } from 'react'
import { geomToWkt, isIntersects, wktToGeom } from "../helper/mapHelper";
export default class FxyhsjglApi{
    static async list(params) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/yhsj/list`, {
            ...params
        })

        return resp;
    }
    static async getFxyhCategroy() {
        const fxyhCategroy = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/风险隐患分类.json`)
       
        return fxyhCategroy;
    }
    static async getFxyhCategroy2() {
        const fxyhCategroy2 = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/风险隐患_新增.json`)
       
        return fxyhCategroy2;
    }
    static async getFxyhCategroy3() {
        const fxyhCategroy3 = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/风险隐患分类_导出.json`)
       
        return fxyhCategroy3;
    }
    static async fxyhAddDynamicApi() {
        const fxyhAddDynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/风险隐患新增.json`)
        return fxyhAddDynamicForms;
    }
    static async fxyhEditDynamicApi() {
        const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/风险隐患编辑.json`)
        return dynamicForms;
    }
    static async listId(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/yhsj/`+id)
        return resp;
       
    }  
}